package com.ten.common.core.entity;

import java.time.LocalDateTime;
import java.util.Date;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
/**
 * (History)实体类
 *
 * @author makejava
 * @since 2022-12-26 14:56:12
 */
@Data
@TableName(value = "tb_play_history")
public class TbPlayHistory implements Serializable {
    private static final long serialVersionUID = 809359894859207125L;

    @TableId(value = "play_id")
    /**
     * 观看历史id
     */
    private String playId;
    /**
     * 用户id
     */
    private String userId;
    /**
     * 视频id
     */
    private String vedeoId;

    /**
     * 历史观看时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime playTimePoint;

    /**
     * 需要查询到的数据，数据库中不存在
     */
    @TableField(exist = false)
    private String title;
    @TableField(exist = false)
    private String chapterTitle;
    @TableField(exist = false)
    private String videoTitle;


}

